package wbs;

public class FacadeServicesBeanProxy implements wbs.FacadeServicesBean {
  private String _endpoint = null;
  private wbs.FacadeServicesBean facadeServicesBean = null;
  
  public FacadeServicesBeanProxy() {
    _initFacadeServicesBeanProxy();
  }
  
  public FacadeServicesBeanProxy(String endpoint) {
    _endpoint = endpoint;
    _initFacadeServicesBeanProxy();
  }
  
  private void _initFacadeServicesBeanProxy() {
    try {
      facadeServicesBean = (new wbs.FacadeServicesBeanServiceLocator()).getFacadeServicesBeanPort();
      if (facadeServicesBean != null) {
        if (_endpoint != null)
          ((javax.xml.rpc.Stub)facadeServicesBean)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
        else
          _endpoint = (String)((javax.xml.rpc.Stub)facadeServicesBean)._getProperty("javax.xml.rpc.service.endpoint.address");
      }
      
    }
    catch (javax.xml.rpc.ServiceException serviceException) {}
  }
  
  public String getEndpoint() {
    return _endpoint;
  }
  
  public void setEndpoint(String endpoint) {
    _endpoint = endpoint;
    if (facadeServicesBean != null)
      ((javax.xml.rpc.Stub)facadeServicesBean)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
    
  }
  
  public wbs.FacadeServicesBean getFacadeServicesBean() {
    if (facadeServicesBean == null)
      _initFacadeServicesBeanProxy();
    return facadeServicesBean;
  }
  
  public java.lang.String obtenerCotizacion(java.lang.String arg0) throws java.rmi.RemoteException{
    if (facadeServicesBean == null)
      _initFacadeServicesBeanProxy();
    return facadeServicesBean.obtenerCotizacion(arg0);
  }
  
  
}